package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map; /**
 * @autahor: csl
 * @date: 2019/7/21
 * @description: 预约设置持久层
 * @version:1.0
 */
public interface OrderSettingDao {
    long countByOrderDate(Date orderDate);

    void updateOrderSettingByOrderDate(Date orderDate);

    void add(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(Map map);

    OrderSetting  findOrderSettingByOrderDate(@Param("orderDate") Date orderDate);

    List<OrderSetting> findAll();
    void updateByOrderDate(OrderSetting orderSetting);

}
